package com.zeng.stpro.modules.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zeng.stpro.modules.app.bean.SysUser;
import com.zeng.stpro.modules.app.mapper.SysUserMapper;
import com.zeng.stpro.modules.app.service.SysUserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author ZENGZHIJUN
 * @Date 2021/2/2 17:09
 */
@Transactional
@Service("sysUserService")
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    public SysUser findByUsername(String username) {
        return baseMapper.findByUsername(username);
    }

    @Override
    public List<SysUser> findPageList(Long pageNo, Long size) {
        Page<SysUser> page = new Page<>(pageNo, size);
        QueryWrapper<SysUser> queryWrapper = new QueryWrapper<>();
        Page<SysUser> sysUserPage = this.baseMapper.selectPage(page, queryWrapper);
        return null;
    }
}
